home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / identify.lha / Identify / include / Pascal / libraries / identify.h
Text File  |  1997-04-23  |  9KB  |  216 lines

  1. ** $VER: identify.h 6.0 (16.4.97)
  2. ** 
  3. ** identify.library definitions 
  4. ** 
  5. ** (C) Copyright 1996-97 Richard Koerber
  6. ** All Rights Reserved. 
  7. }
  8.  
  9. {$if not def LIBRARIES_IDENTIFY_H} CONST LIBRARIES_IDENTIFY_H=1;
  10.  
  11.  
  12. {$if not def EXEC_LIBRARIES_H;incl 'exec/libraries.h';endif}
  13. {$if not def UTILITY_TAGITEM_H;incl 'utility/tagitem.h';endif}
  14.  
  15. CONST  _IDTAGS      = $CD450000;
  16.  
  17. { --------------------------------------------------------------------------}
  18. { Generic library informations }
  19.  
  20. CONST  IDENTIFYVERSION = 6;
  21.  
  22. TYPE   p_IdentifyBase = ^_IdentifyBase;
  23.        _IdentifyBase  = Record
  24.                           ifyb_LibNode  :_Library;
  25.                         End;
  26.  
  27. CONST  IDENTIFYBUFLEN = 50;  { default buffer length }
  28.  
  29. { --------------------------------------------------------------------------}
  30. { Expansion() tags }
  31.  
  32.        IDTAG_ConfigDev   = _IDTAGS+$00; { "p_ConfigDev" ConfigDev }
  33.                                         { structure to be evaluated }
  34.        IDTAG_ManufID     = _IDTAGS+$01; { UWORD manufacturer ID if no }
  35.                                         { ConfigDev is available }
  36.        IDTAG_ProdID      = _IDTAGS+$02; { UBYTE product ID if no }
  37.                                         { ConfigDev is available }
  38.        IDTAG_StrLength   = _IDTAGS+$03; { UWORD of maximum buffer length, }
  39.                                         { including termination. Default }
  40.                                         { is 50. }
  41.        IDTAG_ManufStr    = _IDTAGS+$04; { STRPTR of manufacturer name }
  42.                                         { puffer, or NULL }
  43.        IDTAG_ProdStr     = _IDTAGS+$05; { STRPTR of product name }
  44.                                         { puffer, or NULL }
  45.        IDTAG_ClassStr    = _IDTAGS+$06; { STRPTR of product class }
  46.                                         { puffer, or NULL }
  47.        IDTAG_DeadStr     = _IDTAGS+$07; { STRPTR deadend or recoverable alert? }
  48.        IDTAG_SubsysStr   = _IDTAGS+$08; { STRPTR alert subsystem }
  49.        IDTAG_GeneralStr  = _IDTAGS+$09; { STRPTR alert general cause }
  50.        IDTAG_SpecStr     = _IDTAGS+$0A; { STRPTR alert specific cause }
  51.        IDTAG_FuncNameStr = _IDTAGS+$0B; { STRPTR function name }
  52.        IDTAG_Expansion   = _IDTAGS+$0C; { "pp_ConfigDev" ConfigDev for a }
  53.                                         { complete expansion check. Init }
  54.                                         { the variable with NULL and pass }
  55.                                         { a pointer to it using this tag. }
  56.  
  57. { --------------------------------------------------------------------------}
  58. { Hardware description types }
  59.  
  60.        IDHW_SYSTEM      = 0;   { System (Amiga,DraCo,...)            [V2] }
  61.        IDHW_CPU         = 1;   { CPU (68000,68010,...,68060) }
  62.        IDHW_FPU         = 2;   { FPU (---,68881,68882,68040,68060) }
  63.        IDHW_MMU         = 3;   { MMU (---,68852,68030,68040,68060) }
  64.        IDHW_OSVER       = 4;   { OS Version (Vx.x) }
  65.        IDHW_EXECVER     = 5;   { Exec Version (Vx.x) }
  66.        IDHW_WBVER       = 6;   { Workbench Version (---,Vx.x) }
  67.        IDHW_ROMSIZE     = 7;   { OS ROM Size (xKB, xMB) }
  68.        IDHW_CHIPSET     = 8;   { Chipset (OCS,ECS,AGA,DraCo) }
  69.        IDHW_GFXSYS      = 9;   { Graphic OS (AmigaOS, CyberGraphX, ...) }
  70.        IDHW_CHIPRAM     = 10;  { Chip RAM (xKB, xMB, xGB) }
  71.        IDHW_FASTRAM     = 11;  { Fast RAM (xKB, xMB, xGB) }
  72.        IDHW_RAM         = 12;  { Total RAM (xKB, xMB, xGB) }
  73.        IDHW_SETPATCHVER = 13;  { SetPatch Version (---,Vx.x)         [V4] }
  74.        IDHW_AUDIOSYS    = 14;  { Audio OS (AmigaOS, AHI, ...)        [V5] }
  75.        IDHW_OSNR        = 15;  { AmigaOS (2.04, 3.1, ...) }
  76.        IDHW_VMMCHIPRAM  = 16;  { VMM Chip RAM (*KB, *MB, *GB) }
  77.        IDHW_VMMFASTRAM  = 17;  { VMM Fast RAM (*KB, *MB, *GB) }
  78.        IDHW_VMMRAM      = 18;  { VMM Total RAM (*KB, *MB, *GB) }
  79.        IDHW_PLNCHIPRAM  = 19;  { Plain Chip RAM (*KB, *MB, *GB) }
  80.        IDHW_PLNFASTRAM  = 20;  { Plain Fast RAM (*KB, *MB, *GB) }
  81.        IDHW_PLNRAM      = 21;  { Plain Total RAM (*KB, *MB, *GB) }
  82.        IDHW_VBR         = 22;  { Vector Base Register                [V6] }
  83.        IDHW_LASTALERT   = 23;  { Last Alert code }
  84.        IDHW_VBLANKFREQ  = 24;  { VBlank Frequency }
  85.        IDHW_POWERFREQ   = 25;  { Power Frequency }
  86.        IDHW_ECLOCK      = 26;  { EClock }
  87.        IDHW_SLOWRAM     = 27;  { Plain Slow RAM (*KB, *MB, *GB) }
  88.        IDHW_GARY        = 28;  { Gary (---,Normal,...) }
  89.        IDHW_RAMSEY      = 29;  { RAMSEY (---,D,F)
  90.        IDHW_BATTCLOCK   = 30;  { Battery Backed Up Clock (---,Found) }
  91.        IDHW_NUMBEROF    = 31;  { Number of types, PRIVATE! }
  92.  
  93. { --------------------------------------------------------------------------}
  94. { IDHW_SYSTEM numerical result codes }
  95.  
  96.        IDSYS_AMIGA1000 = 0;     { Amiga 1000 }
  97.        IDSYS_AMIGAOCS  = 1;     { OCS Amiga 500/2000 }
  98.        IDSYS_AMIGAECS  = 2;     { ECS Amiga 500/2000 }
  99.        IDSYS_AMIGA500  = 3;     { Amiga 500 }
  100.        IDSYS_AMIGA2000 = 4;     { Amiga 2000 }
  101.        IDSYS_AMIGA3000 = 5;     { Amiga 3000 }
  102.        IDSYS_CDTV      = 6;     { CDTV }
  103.        IDSYS_AMIGA600  = 7;     { Amiga 600 }
  104.        IDSYS_CD32      = 8;     { CD32 }
  105.        IDSYS_AMIGA1200 = 9;     { Amiga 1200 }
  106.        IDSYS_AMIGA4000 = 10;    { Amiga 4000 }
  107.        IDSYS_DRACO     = 11;    { DraCo }
  108.  
  109. { --------------------------------------------------------------------------}
  110. { IDHW_CPU numerical result codes }
  111.  
  112.        IDCPU_68000     = 0;     { 68000 }
  113.        IDCPU_68010     = 1;     { 68010 }
  114.        IDCPU_68020     = 2;     { 68020 }
  115.        IDCPU_68030     = 3;     { 68030 }
  116.        IDCPU_68EC030   = 4;     { 68EC030 (without MMU) }
  117.        IDCPU_68040     = 5;     { 68040 }
  118.        IDCPU_68LC040   = 6;     { 68LC040 (without FPU) }
  119.        IDCPU_68060     = 7;     { 68060 }
  120.        IDCPU_68LC060   = 8;     { 68LC060 (without FPU) }
  121.  
  122. { --------------------------------------------------------------------------}
  123. { IDHW_FPU numerical result codes }
  124.  
  125.        IDFPU_NONE      = 0;     { no FPU }
  126.        IDFPU_68881     = 1;     { 68881 }
  127.        IDFPU_68882     = 2;     { 68882 }
  128.        IDFPU_68040     = 3;     { 68040 }
  129.        IDFPU_68060     = 4;     { 68060 }
  130.  
  131. { --------------------------------------------------------------------------}
  132. { IDHW_MMU numerical result codes }
  133.  
  134.        IDMMU_NONE      = 0;     { no MMU }
  135.        IDMMU_68851     = 1;     { 68851 }
  136.        IDMMU_68030     = 2;     { 68030 }
  137.        IDMMU_68040     = 3;     { 68040 }
  138.        IDMMU_68060     = 4;     { 68060 }
  139.  
  140. { --------------------------------------------------------------------------}
  141. { IDHW_OSNR numerical result codes }
  142.  
  143.        IDOS_UNKNOWN    = 0;     { <V36 or >V41 }
  144.        IDOS_2_0        = 1;     { OS2.0  (V36) }
  145.        IDOS_2_04       = 2;     { OS2.04 (V37) }
  146.        IDOS_2_1        = 3;     { OS2.1  (V38) }
  147.        IDOS_3_0        = 4;     { OS3.0  (V39) }
  148.        IDOS_3_1        = 5;     { OS3.1  (V40) }
  149.        IDOS_3_2        = 6;     { OS3.2  (V41) }
  150.  
  151. { --------------------------------------------------------------------------}
  152. { IDHW_CHIPSET numerical result codes }
  153.  
  154.        IDCS_OCS        = 0;     { OCS }
  155.        IDCS_ECS        = 1;     { ECS }
  156.        IDCS_AGA        = 2;     { AGA }
  157.        IDCS_ALTAIS     = 3;     { DraCo Altais }
  158.  
  159. { --------------------------------------------------------------------------}
  160. { IDHW_GFXSYS numerical result codes }
  161.  
  162.        IDGOS_AMIGAOS   = 0;     { Plain AmigaOS }
  163.        IDGOS_EGS       = 1;     { EGS }
  164.        IDGOS_RETINA    = 2;     { Retina }
  165.        IDGOS_GRAFFITI  = 3;     { Graffiti }
  166.        IDGOS_TIGA      = 4;     { TIGA }
  167.        IDGOS_PROBENCH  = 5;     { Merlin ProBench }
  168.        IDGOS_PICASSO   = 6;     { Picasso }
  169.        IDGOS_CGX       = 7;     { CyberGraphX }
  170.        IDGOS_CGX3      = 8;     { CyberGraphX 3D }
  171.        IDGOS_PICASSO96 = 9;     { Picasso96 }
  172.  
  173. { --------------------------------------------------------------------------}
  174. { IDHW_AUDIOSYS numerical result codes }
  175.  
  176.        IDAOS_AMIGAOS   = 0;     { Plain AmigaOS }
  177.        IDAOS_MAESTIX   = 1;     { MaestroPro driver }
  178.        IDAOS_TOCCATA   = 2;     { Toccata driver }
  179.        IDAOS_PRELUDE   = 3;     { Prelude driver }
  180.        IDAOS_AHI       = 4;     { AHI }
  181.        IDAOS_MACROAUDIO = 5;    { MacroAudio }
  182.  
  183. { --------------------------------------------------------------------------}
  184. { IDHW_GARY numerical result codes }
  185.  
  186.        IDGRY_NONE      = 0;     { No Gary available }
  187.        IDGRY_NORMAL    = 1;     { Normal Gary }
  188.        IDGRY_ENHANCED  = 2;     { Enhanced Gary }
  189.  
  190. { --------------------------------------------------------------------------}
  191. { IDHW_RAMSEY numerical result codes }
  192.  
  193.        IDRSY_NONE      = 0;     { No RamSey available }
  194.        IDRSY_REVD      = 1;     { RamSey Revision D }
  195.        IDRSY_REVF      = 2;     { RamSey Revision F }
  196.  
  197. { --------------------------------------------------------------------------}
  198. { Error codes }
  199.  
  200. { Positive error codes are DOS errors! }
  201.        IDERR_OKAY = 0;      { No error }
  202.        IDERR_NOLENGTH = -1; { Buffer length is 0 ?? }
  203.        IDERR_BADID = -2;    { Missing or bad board ID }
  204.        IDERR_NOMEM = -3;    { Not enough memory }
  205.        IDERR_NOFD = -4;     { No fitting FD file found }
  206.        IDERR_OFFSET = -5;   { Function offset not found }
  207.        IDERR_DONE = -6;     { Done with traversing (not an error) }
  208.  
  209. { --------------------------------------------------------------------------}
  210. { That's all... }
  211.  
  212. {$endif} 
  213.  
  214.  
  215.